import { createApp } from 'vue'
import {createPinia} from 'pinia'
import "./style.css"
import App from './App.vue'
import './samples/node-api'
// 设置自定义指令
import toDirective from '@/utils/Directive'
import router from "./router";
import echarts from '@/utils/Echarts'
// createApp(App)
//   .mount('#app')
  
//   .$nextTick(() => {
//     postMessage({ payload: 'removeLoading' }, '*')
//   })
const app = createApp(App)
// 挂载全局实例
app.config.globalProperties.$echarts = echarts

app.use(router)
// 自定义指令注册
app.use(toDirective)
app.mount('#app')